package com.david.service.web.controller;

import com.david.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：David
 * @weibo ：http://weibo.com/mcxiaobing
 * @github: https://github.com/QQ986945193
 */
@RestController
public class OrderController {

    @Autowired
    private OrderService orderService;

    @GetMapping("/ad")
    public String ad() {
        Integer count = orderService.ad();
        return count+"";
    }
    @GetMapping("/get")
    public String get() {
        Integer count = orderService.get();
        return count+"";
    }
}